package org.dromara.trace.domain.bo;

import org.dromara.trace.domain.TraceStaff;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 溯源人员业务对象 trace_staff
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TraceStaff.class, reverseConvertGenerate = false)
public class TraceStaffBo extends BaseEntity {

    /**
     * 员工ID
     */
    @NotNull(message = "员工ID不能为空", groups = { EditGroup.class })
    private Long staffId;

    /**
     * 员工职位
     */
    @NotBlank(message = "员工职位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String staffPosition;

    /**
     * 员工名称
     */
    @NotBlank(message = "员工名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String staffName;

    /**
     * 员工联系方式
     */
    @NotBlank(message = "员工联系方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String staffTel;

    /**
     * 员工描述
     */
    @NotBlank(message = "员工描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String staffDes;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态 1可用 2不可用 trace_status
     */
    @NotBlank(message = "状态 1可用 2不可用 trace_status不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 基地ID
     */
    @NotNull(message = "基地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long baseId;

    /**
     * 部门ID
     */
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
